home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in2.uu.net!pgh!jak
- From: jak@pgh.nauticom.net (Jamshid)
- Subject: Re: Char to int??
- Message-ID: <DpzMrD.F8@pgh.nauticom.net>
- Date: Wed, 17 Apr 1996 03:52:24 GMT
- References: <4ai0ov$l88@nosy.bart.nl>
- Organization: Nauticom - Internet Access Provider
- X-Newsreader: TIN [version 1.2 PL2]
-
- Steven van den Berg (painless@bart.nl) wrote:
- : Can somebody please tell me how you can covert a char to an int. I
- : want to convert a char like "a" to the scancode of a and put that into
- : an int.
-
- Anotherway that can work, depending on what you need...try using
-
- {
- char c[]="car";
- int Crap;
-
- Crap=atoi(c);
- }
-
- Don't ask me what library you need.
-
- -Jamshid
-